package com.qingmeng.portal.enums;

import com.qingmeng.common.api.IErrorCode;

/**
 * 用户登录过程中可能出现的结果
 */
public enum LoginResult implements IErrorCode {
    USERNAME_ERROR(0,"用户名错误"),
    PASSWORD_ERROR(1,"密码错误"),
    LOGIN_SUCCESS(2,"登陆成功");
    private final long code;
    private final String message;

    LoginResult(long code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
